#include "Application.h"

Application::Application() 
	:
	window(800, 600),
	_ElementType(window.GFX())
{

}

Application::~Application() {
}

INT Application::Run() {

	while (TRUE) {
		if (!CWindow::Messages()) {
			return -1;
		}
		DoFrame();
	}

	return 0;
}

VOID Application::DoFrame() {
	window.GFX().StartRenderScene(40, 40, 40);

	_ElementType.Draw(window.GFX());
	_ElementType.DrawRHW(window.GFX());

	window.GFX().StopRenderScene();
}
